package com.example.demo3.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo3.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface EmployeeMapper extends BaseMapper<Employee> {
    @Select(value = "select * from employee where name=#{name} and password=#{password} ")
    public Employee findByNameAndPassword(@Param("name") String name,@Param("password") String password);
}
